package com.property.manage.model.rent;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDate;

@Data
@TableName("t_rent")
public class RentEntity {

    public static final Integer STATE_RENTING = 1;

    public final static Integer STATE_DELETED = 2;

    @TableId(type = IdType.AUTO)
    private Integer id;
    //租金
    private BigDecimal money;
    //物业费
    private BigDecimal propertyFee;
    //其他费用
    private BigDecimal otherFee;
    //押金
    private BigDecimal payDeposit;
    //押金退还金额
    private BigDecimal refundDeposit;
    //总金额=租金+物业费+其他费用
    private BigDecimal totalMoney;
    private LocalDate startTime;
    private LocalDate endTime;
    private LocalDate nextTime;
    private String name;
    private String phone;
    private Integer type;
    private String number;
    private Integer buildingId;
    private Integer villageId;
    //备注
    private String remarks;

    private Integer state;
}
